/**
 * Created by moxingxum on 2017/2/12.
 */

//存储聊天消息
export const MessageSchema =  {
    name: 'Message',
    primaryKey: 'id',
    properties: {
        id: 'string',
        type: 'string',
        roomId: 'string',
        syncstate: 'init',
        createdAt: 'string',// ts
        msg: 'string',
        user: 'User',
        groupable: 'bool',
        alias: 'string',
        avatar: {type: 'string', optional: true},
        attachments:{type: 'string', optional: true},
        uris :{type: 'string', optional: true},

    }
};



